import React from 'react';
import { Tabs } from 'antd';
import { ConnectState } from '../../models/connect';
import { connect, Dispatch } from 'umi';
import DocumentTitle from 'react-document-title';
import { AdjustTheRecordState } from '../../type';
import styles from './index.less';
import Head from './Head'
import Table from './Table'

interface IProps extends AdjustTheRecordState {
  dispatch: Dispatch;
}
const AdjustTheRecord: React.FC<IProps> = (props) => {
  return (
    <DocumentTitle title="调价记录">
      <div className={styles.adjustTheRecord}>
        <div className={styles.adjustTheRecord_body}>
          <Head />
          <div className={styles.main}>
            <Table />
          </div>
        </div>
      </div>
    </DocumentTitle>
  );
};

export default connect(({ ...state }: ConnectState) => {
  // console.log('state', state);
  return {
    ...state.adjustTheRecordStore,
  };
})(AdjustTheRecord);
